package cn.iocoder.yudao.module.leverage.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * Goods 错误码枚举类
 * <p>
 * 配资 系统，使用 2-003-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 配资申请  2-003-000-000 ============
    ErrorCode FUNDS_NOT_EXISTS = new ErrorCode(2_003_000_001, "error.2_003_000_001");
    ErrorCode FEE_NOT_EXISTS = new ErrorCode(2_003_000_002, "error.2_003_000_002");
    ErrorCode FUNDS_BONE_MIN = new ErrorCode(2_003_000_003, "error.2_003_000_003");
    ErrorCode FUNDS_BONE_MAX = new ErrorCode(2_003_000_004, "error.2_003_000_004");
    ErrorCode FUNDS_EXISTS = new ErrorCode(2_003_000_005, "error.2_003_000_005");
    ErrorCode FUNDS_STATUS_ERROR = new ErrorCode(2_003_000_006, "error.2_003_000_006");
    ErrorCode FUNDS_FEE_TYPE_ERROR = new ErrorCode(2_003_000_007, "error.2_003_000_007");
    ErrorCode FUNDS_ACCOUNT_ERROR = new ErrorCode(2_003_000_008, "error.2_003_000_008");
    ErrorCode FUNDS_BONE_MONGODB_ERROR = new ErrorCode(2_003_000_009, "error.2_003_000_009");
    ErrorCode FUNDS_MONGODB_NOT_FIND = new ErrorCode(2_003_000_010, "error.2_003_000_010"); // 修正重复的009为010
    ErrorCode FUNDS_ACCOUNT_NOT_FIND = new ErrorCode(2_003_000_011, "error.2_003_000_011"); // 新增唯一编号
    ErrorCode FUNDS_ACCOUNT_STATUS_ERROR = new ErrorCode(2_003_000_012, "error.2_003_000_012"); // 新增唯一编号
    ErrorCode FUNDS_ACCOUNT_EXPIRE = new ErrorCode(2_003_000_013, "error.2_003_000_013"); // 新增唯一编号
    ErrorCode FUNDS_ACCOUNT_NOT_ENOUGH = new ErrorCode(2_003_000_014, "error.2_003_000_014"); // 新增唯一编号

    // ========== 扩资申请  2-004-000-000 ============
    ErrorCode FUNDS_EXPAND_NOT_EXISTS = new ErrorCode(2_004_000_001, "error.2_004_000_001");
    ErrorCode FUNDS_STATUS_NOT_APPROVED = new ErrorCode(2_004_000_002, "error.2_004_000_002");
    ErrorCode FUNDS_END_TIME_EXPIRE = new ErrorCode(2_004_000_003, "error.2_004_000_003");
    ErrorCode FUNDS_FREE_NOT_SUPPORT = new ErrorCode(2_004_000_004, "error.2_004_000_004");
    ErrorCode FUNDS_EXITS_EXPAND = new ErrorCode(2_004_000_005, "error.2_004_000_005");

    // ========== 配资延期  2-005-000-000 ============
    ErrorCode FUNDS_EXTENSION_NOT_EXISTS = new ErrorCode(2_005_000_001, "error.2_005_000_001");
    ErrorCode FUNDS_EXITS_EXTENSION = new ErrorCode(2_005_000_002, "error.2_005_000_002");

    // ========== 追加保证金  2-006-000-000 ============
    ErrorCode FUNDS_BOND_NOT_EXISTS = new ErrorCode(2_006_000_000, "error.2_006_000_000");
    ErrorCode FUNDS_NOT_APPROVE = new ErrorCode(2_006_000_001, "error.2_006_000_001");
    // ========== app 购买股票 2-007-000-000 ============
    ErrorCode STOCK_BUY = new ErrorCode(2_007_000_000, "error.2_007_000_000");
    ErrorCode STOCK_BUY_TYPE_ERROR = new ErrorCode(2_007_000_001, "error.2_007_000_001");
    ErrorCode STOCK_BUY_TIME_ERROR = new ErrorCode(2_007_000_002, "error.2_007_000_002");
    ErrorCode STOCK_PRICE_NOT_FOUND = new ErrorCode(2_007_000_003, "error.2_007_000_003");
    ErrorCode ORDER_NOT_EXISTS = new ErrorCode(2_007_000_004, "error.2_007_000_004");
    ErrorCode ORDER_CANCEL_ERROR = new ErrorCode(2_007_000_005, "error.2_007_000_005");
    ErrorCode USER_NOT_EXISTS = new ErrorCode(2_007_000_006, "error.2_007_000_006");
    ErrorCode STOCK_NOT_EXISTS = new ErrorCode(2_007_000_007, "error.2_007_000_007");
    ErrorCode ACCOUNT_NOT_EXISTS = new ErrorCode(2_007_000_008, "error.2_007_000_008");
    // ========== app 卖出股票 2-008-000-000 ============
    ErrorCode POSITION_NOT_EXISTS = new ErrorCode(2_008_000_001, "error.2_008_000_001");
    ErrorCode POSITION_SELL_ERROR = new ErrorCode(2_008_000_002, "error.2_008_000_002");
    ErrorCode STOCK_SELL_ERROR = new ErrorCode(2_008_000_003, "error.2_008_000_003");

    // ========== app 平仓股票 2-009-000-000 ============
    ErrorCode POSITION_CLOSE_MASTER = new ErrorCode(2_009_000_001, "error.2_009_000_001");
    ErrorCode HAS_POSITION = new ErrorCode(2_009_000_002, "error.2_009_000_002");
    ErrorCode HAS_ORDER = new ErrorCode(2_009_000_003, "error.2_009_000_003");
    ErrorCode POSITION_CLOSE_STATUS = new ErrorCode(2_009_000_004, "error.2_009_000_004"); // 修正重复编号
    ErrorCode ACCOUNT_CLOSE_ERROR = new ErrorCode(2_009_000_005, "error.2_009_000_005"); // 新增唯一编号
    ErrorCode CURRENCY_NOT_FOUND = new ErrorCode(2_009_000_006, "error.2_009_000_006");
}
